package service

import (
	"tylnmall/models"
	//db "tylnmall/database"
)

func Login(us string,pw string)(user models.User,err error){
	//rs,er := db.SqlDB.Query("select * from user where username = ? and password = ?",us,pw)
	//if er!= nil{
	//	return user,er
	//}
	//defer rs.Close()
	//rs.Next()
	//rs.Scan(&user.Id, &user.Username, &user.Password)
	return user,nil
}